<template>
  <div>
    <h2>我是哥开{{car}}</h2>
    <button @click="changeCar">点击换车</button>
  </div>
</template>


<script>
export default {
  name:"Gege",
  data(){
    return{
      car:"五菱"
    }
  },
  methods:{
    changeCar(){
      this.car = "奔驰";
      this.bus.$emit("getCar",this.car)
    }
  }

}
</script>


<style></style>